import Request from "../../../../utils/request.js";
export default class {
  static getDetail(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivity/detail`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  } 

  static getDetailByPrizeId(params) {
    console.log(params);
    return Request({
      url: `rs-game-center-service/activity/gameActivityAward/detailByPrizeId`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  } 

  static getHighSetData(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivity/advancedSettingDetail`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  } 

  static getActivityUser(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivityUser/detail`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }
  static getWinnerUserList(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivityUserPrize/list`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }

  // static addUserServ(params) {
  //   return Request({
  //     url: `rs-game-center-service/activity/gameActivityUser/add`,
  //     type: "POST",
  //     data: params
  //   })
  // }


  static startGame(params){
    return Request({
      url: `rs-game-center-service/activity/gameActivityUser/luckyDraw`,
      type: "POST",
      data: params
    })
  }

  static inviteCountServ(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivityUser/invitation`,
      type: "POST",
      data: params
    })
  }
  static houseRecommend(params) {
    return Request({
      url: `app/estate/findEstate`,
      type: "POST",
      data: params
    })
  }
}